// 税务查询相关api
import request from "@/utils/request";

//第一次登陆
export function login(data) {
  return request({
    url: "/tax/query/login",
    method: "post",
    data
  });
}

// 发送验证码
export function sendCode(data) {
  return request({
    url: "/tax/query/sendSmsCode",
    method: "post",
    data
  });
}
//验证码登陆
export function smsMsLogin(data) {
  return request({
    url: "/tax/query/smsMsgLogin",
    method: "post",
    data
  });
}

//获取地区列表

export function getProvinceList() {
  return request({
    url: "/tax/query/listProvince",
    method: "get"
  });
}

//申报查询信息列表

export function getApplyInfoList(params) {
  return request({
    url: "/tax/query/applyInfoList",
    method: "get",
    params
  });
}

// 征收品目聚合查询

export function getcollectCategoryList(params) {
  return request({
    url: "/tax/query/collectionCategoryList",
    method: "get",
    params
  });
}

//查询任务列表接口

export function getAllStatusTask(params) {
  return request({
    url: "/tax/query/getAllStatusTask",
    method: "get",
    params
  });
}

// 任务完成通知

export function getNoticeInfo(data) {
  return request({
    url: "/tax/query/noticeTaskFinish",
    method: "post",
    data
  });
}

// 分页查询已缴税数据

export function getPaidTaxList(params) {
  return request({
    url: "/tax/query/paidTaxList",
    method: "get",
    params
  });
}

//查询纳税信用状态信息

export function getCreditStatusInfo(params) {
  return request({
    url: "tax/query/queryCreditStatusInfo",
    method: "get",
    params
  });
}

//征收项目查询
export function getTaxTypeList(params) {
  return request({
    url: "/tax/query/taxTypeList",
    method: "get",
    params
  });
}

//历史查询记录
export function getHistoryList(params) {
  return request({
    url: "/tax/query/getHistoryTask",
    method: "get",
    params
  });
}

//查询开票记录详情
export function getValueAddResultsDetail(id) {
  return request({
    url: `/tax/query/applyInfoDetail/${id}`,
    method: "get"
  });
}

//年度评价结果详情

export function getAnnualEvaluationResultsDetail(id) {
  return request({
    url: `/tax/query/queryCreditEvaluationDetail/${id}`,
    method: "get"
  });
}

// 根据企业税号 查询是否需要验证码

export function getTaxNo(taxNo) {
  return request({
    url: `/enterprise/tax/${taxNo}`,
    method: "get"
  });
}

//添加企业户 发送验证码

export function sendCanpanyCode(data) {
  return request({
    url: `/enterprise/tax/sendCode`,
    method: "post",
    data
  });
}

//企业 强制跟新

export function getCompanyInfo(data) {
  return request({
    url: `/tax/query/updateEnterpriseInfoDel`,
    method: "put",
    params: data
  });
}

//不需要密码
export function noCodeL(data) {
  return request({
    url: `/tax/query/onlyAccountLogin`,
    method: "post",
    data
  });
}

// 任务分页
export function getTaskQueryPage(params) {
  return request({
    url: "/taskQuery/page",
    method: "get",
    params
  });
}

//任务分页列表
export function getTaskQueryList(id) {
  return request({
    url: `/taskQuery/getList/${id}`,
    method: "get"
  });
}
